package com.fahai.web.service.impl;

import com.fahai.common.PageVo;
import com.fahai.web.dao.ConvenientDao;
import com.fahai.web.entity.BusPayFlowno;
import com.fahai.web.service.ConvenientService;
import com.fahai.web.vo.CallFlownoVo;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ConvenientServiceImpl implements ConvenientService {
    @Autowired
    ConvenientDao convenientDao;
    @Override
    public PageVo findList(BusPayFlowno busPayFlowno, PageVo pageVo) {
        Page<BusPayFlowno> page = PageHelper.startPage(pageVo.getPageNum(), pageVo.getPageSize());
        List<BusPayFlowno> vos=convenientDao.queryList(busPayFlowno);
        pageVo.setResult(vos);
        return pageVo;
    }

    @Override
    public int getCount(BusPayFlowno busPayFlowno, PageVo pageVo) {
        int i= convenientDao.queryCount(busPayFlowno);
        return i;
    }
}
